<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="utf-8"/>
    <meta name="renderer" content="webkit">
    <meta http-equiv="X-UA-Compatible" content="IE=Edge">
    <meta name="viewport" content="target-densitydpi=640,width=1280,user-scalable=yes">
    <base href="<?php echo $system['siteRoot'];?>" />
    <title>我的收藏</title>
    <?php import_tpl("fragment/icon.php"); ?>
    <link rel="stylesheet" href="plugin/reset.css"/>
    <link rel="stylesheet" href="plugin/awesome4/css/font-awesome.min.css"/>
    <link rel="stylesheet" href="style/common.css"/>
    <link rel="stylesheet" href="style/goods.css"/>
    <link rel="stylesheet" href="style/collection.css?v=0.1"/>
    <script src="plugin/jquery-1.11.2.min.js"></script>
    <script type="text/javascript">
    (function(){
        $(function(){
            //console.log( $('.slide .commodity'))
            $('.slide .collection').addClass('menu-normal').removeClass('menu-label')    
        })
    })()
    </script>
    <script type="text/javascript">_root='<?php echo $system['siteRoot'];?>';_trueRoot='<?php echo $system['root'];?>';</script>
    <script src="script/api.js"></script>
    <script src="script/ZeroClipboard.min.js"></script>
    <script src="script/user-collection.js?v=0.1"></script>
</head>
<body>
<div id="container" class="index" data-type="collect">
    <?php import_part("custom.home","userBar"); ?>
    <?php import_part("custom.home","header"); ?>
    <?php import_tpl("fragment/nav.php"); ?>
    <div class="main-container">
        <div class="left">
            <?php import_tpl("fragment/mySlide.php"); ?>
            <div class="qr-code-box">
                <img src="images/weixin.png" alt="扫描二维码关注" title="关注我们的微信"/>
                <div>
                    <p class="weixin">扫描二维码</p>
                    <p class="concern">关注我们的微信</p>
                </div>
            </div>
        </div>
        <div class="right">
            <div class="categro">
                <div class="wap">
                    <p>我的收藏</p>
                </div>
            </div>
            <div class="goods-plate js-menu-love">
            <?php foreach ($r['goodslist'] as $k => $v) {?>
                <div class="goods" data-goodsid="<?php echo $v['id'];?>" data-gopenid="<?php echo $v['gopen_id']; ?>" data-id="<?=$r['list'][$k]['id']?>">
                    <div class="goods-pic-info">
                        <a href="<?php e_page('goods','index',array('id'=>$v['gopen_id'])) ?>"><img src="<?=$v['thumb']?>" alt=""/></a>
                        <a href="<?php e_page('goods','index',array('id'=>$v['gopen_id'])) ?>"><h4><?=$v['name']?></h4></a>
                    </div>
                    <div class="price"><?=$v['price']['base_price']?></div>
                    <div class="goods-cart js-goods-cart">
                        <a href="<?php e_page('goods','index',array('id'=>$v['gopen_id'])) ?>" class="js-join-cart"><i class="fa fa-shopping-cart"></i>购买</a>
                        <a href="javascript:" class="js-remove-collect"><i class="fa fa-trash"></i>删除</a>
                    </div>
                    <div class="goods-share">
                        <a href="javascript:" data-type="user">分享浏览用户</a>|<a href="" data-type="url">分享(<?=$v['bonus']?>元分成)</a>
                    </div>
                </div>
            <?php }?>
            </div>
            <?php if($r['page'] instanceof Page && !$r['pageEmpty']){
                $page=$r['page'];?>
                <div class="turn-page">
                    <?php if($page->ifPrev()) { ?>
                        <a href="<?=$page->getPageUrl($page->getPrev());?>"><i class="fa fa-chevron-left"></i>上一页</a>
                    <?php }?>
                    <?php foreach($page->getPageArray() as $i){ ?>
                        <a href="<?=$page->getPageUrl($i);?>"><?php echo $i;?></a>
                    <?php } ?>
                    <?php if($page->ifNext()) { ?>
                        <a href="<?=$page->getPageUrl($page->getNext());?>">下一页<i class="fa fa-chevron-right"></i></a>
                    <?php }?>
                </div>
            <?php } ?>
        </div>
    </div>
    <?php import_tpl("fragment/footer.php"); ?>
</div>
<div class="alert-bg collection-share">
    <div class="alert-box">
        <div class="alert-box-title">分享浏览用户<a class="close" href="javascript:"><i class="fa fa-close"></i></a></div>
        <div class="alert-box-share-url">
            <div class="url-copy-box">
                <label>分享地址：</label><span class="url-show"></span><button class="copy-url-button">复制到剪切板</button>
            </div>
            <div class="share-social">
                <!-- JiaThis Button BEGIN -->
                <div class="jiathis_style_32x32">
                <a class="jiathis_button_qzone"></a>
                <a class="jiathis_button_tsina"></a>
                <a class="jiathis_button_tqq"></a>
                <a class="jiathis_button_weixin"></a>
                <a class="jiathis_button_renren"></a>
                <a href="http://www.jiathis.com/share" class="jiathis jiathis_txt jiathis_separator jtico jtico_jiathis" target="_blank"></a>
                <a class="jiathis_counter_style"></a>
                </div>
                <script type="text/javascript" >
                var jiathis_config={
                    url: _trueRoot + "goods/index",
                    summary:"来买吧~",
                    title:"来买吧~",
                    shortUrl:false,
                    hideMore:false
                }
                </script>
                <script type="text/javascript" src="http://v3.jiathis.com/code/jia.js" charset="utf-8"></script>
                <!-- JiaThis Button END -->
            </div>
        </div>
        <div class="alert-box-share-user">
            <h4>浏览用户有：</h4><h5>加载中。。。</h5>
            <div class="share-no-user">暂时没有用户浏览</div>
            <div class="share-user-list">
                <span class="user-name"></span><span class="user-name-split">,</span>
            </div>
            <div class="share-user-num-box">。。等等<span class="share-user-num"></span>名用户</div>
        </div>
    </div>
</div>
</body>
</html>